import 'dart:io';

main() async {
  await for (var request in await HttpServer.bind('0.0.0.0', 1234)) {
    sleep(Duration(seconds: 1));
    request.response
      ..statusCode = HttpStatus.ok
      ..write('ok')
      ..close();
  }
}
